home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Development Kits / MPW etc / MPW-GM / MPW / Examples / CFMExamples / CSharedLibrarySample / How To Build next >
Encoding:
Text File  |  1998-12-03  |  769 b   |  23 lines  |  [TEXT/MPS ]

  1.  
  2. This example demonstrates how to create a shared library on the
  3. Macintosh.  It builds a fat library, and then a fat application
  4. to use that library.
  5.  
  6. To build the C Shared Library Example:
  7.  
  8. make -e -f ShLibExample.make
  9.  
  10. To build the C Shared Library Example suitable for debugging:
  11.  
  12. make -e -f ShLibExample.make -d SymOpt=on
  13.  
  14. The application (ShLibExample) will run successfully only if its 
  15. shared library (SharedLib) can be found.  The shared library will
  16. be found if it is in the same folder as the application, or if it
  17. is in the system extensions folder, or in an immediate sub-folder
  18. of the system extensions folder.
  19.  
  20. If the shared library is not found when the application is launched,
  21. the Macintosh will complain that it is missing a piece called
  22. "SharedLib".
  23.